package com.augurit.smartform.database.change;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.augurit.smartform.database.Table;

public class DatabaseChange {
	private List<Table> createTables=new ArrayList<Table>();
	private List<Table> dropTables=new ArrayList<Table>();
	private Map<String,ColumnChangeInfo> columnChangeInfos=new HashMap<String,ColumnChangeInfo>();
	private Map<String,CopyDataInfo> copyDataMap=new HashMap<String,CopyDataInfo>();
	public Map<String,CopyDataInfo> getCopyDataMap() {
		return copyDataMap;
	}
	public void setCopyDataMap(String newTableName,CopyDataInfo copyDataInfo) {
		this.copyDataMap.put(newTableName,copyDataInfo);
	}
	public List<Table> getCreateTables() {
		return createTables;
	}
	public void setCreateTables(Table createTable) {
		this.createTables.add(createTable);
	}
	public List<Table> getDropTables() {
		return dropTables;
	}
	public void setDropTables(Table dropTable) {
		this.dropTables.add(dropTable);
	}
	public Map<String, ColumnChangeInfo> getColumnChangeInfos() {
		return columnChangeInfos;
	}
	public void setColumnChangeInfos(String newTableName, ColumnChangeInfo columnChangeInfo) {
		this.columnChangeInfos.put(newTableName, columnChangeInfo);
	}
}
